﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DotNetty.Transport.Channels;

namespace WebSocket.Server
{
    public static class EventDelegate
    {
        //public delegate void SendMsg(ExtMsgEventArgs msgExt);
        //public delegate void RecvMsg(ExtMsgEventArgs msgExt);

        public delegate void EventRecv(IChannelHandlerContext context, string ev);
        public delegate void MsgRecv(IChannelHandlerContext context, string msg);
        public delegate void MsgSend(IChannelHandlerContext context, string msg);
        public delegate void IdleState(IChannelHandlerContext context, int idletime);
        public delegate void Accepted(IChannelHandlerContext context);
        public delegate void Connected(IChannelHandlerContext context);
        public delegate void Closed(IChannelHandlerContext context);
        public delegate void Info(string strinfo);
    }
}
